Send SSH commands via script

#homeassistant #linux

  1. in HA terminal ssh-keygen
  2. cp /root/.ssh /config/ssh
  3. include this in beginning of shell_command -> ssh -i /config/ssh/id_rsa -o 'StrictHostKeyChecking=no' username@remote_IP 'touch newfile.txt'

Credits